package org.kl.bf.entity.basic;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kl.bf.entity.AuditableEntity;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 日程管理类型
 * 
 * @Author zl
 * @CreateTime 2014年7月16日 上午14:16:52
 */
// JPA标识
@Entity
@Table(name = "basic_calendar_type")
public class CalendarType extends AuditableEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5797917084709511854L;
	private User user;
	private String typeName;          //类型名称
	private String backgroundColor;   //背景颜色

	public CalendarType(){}
	public CalendarType(String id){
		this.id =id ;
	}
	
	@ManyToOne
	@JoinColumn(name = "user_id")
	@JsonIgnore
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getBackgroundColor() {
		return backgroundColor;
	}

	public void setBackgroundColor(String backgroundColor) {
		this.backgroundColor = backgroundColor;
	}
}
